class RanksController < ApplicationController
  def index
    @innoaward = Innoaward.find_by_year(2015)
    @awards = @innoaward.awards
    #TODO
    gon.jssdk = $wechat_client.get_jssign_package(request.url)
  end

  def vote
    # rank = Rank.find(params[:rank_id])
    # if rank.vote_one request.remote_ip
    #   render json: {vote: rank.vote}
    # else
    #   render json: {error: 'ip daily ceiling', message: '达到每日投票上限'}, status: 401
    # end
    render json: {error: '', message: "投票结束了"}, status: 404
  end
end
